package File;

import java.io.File;
import java.lang.reflect.Array;
import java.util.Arrays;

public class Demo11 {
    public static void main(String[] args) {
        File file=new File("c:/");
        String []list=file.list();
        System.out.println(Arrays.toString(list));
        File[]files=file.listFiles();
        System.out.println(Arrays.toString(files));

    }
}
